package org.fitweb.fixture;

import fit.ColumnFixture;
import fit.Parse;
import org.fitweb.drivers.BrowserController;

public class HttpRequestHeadersFixture extends ColumnFixture {

    public String name;
    public String value;

    private BrowserController controller;

    public HttpRequestHeadersFixture(BrowserController controller) {
        this.controller = controller;
    }

    @Override
    public void execute() throws Exception {
        controller.setRequestHeader(name, value);
    }


    @Override
    public void doRow(Parse row) {
        super.doRow(row);
        right(row);
    }
}
